-- GENERATED SPELL FOR [Old Icebeard] --


function spell0_1271(pUnit, Event) --@Daunting Growl,n/a--
pUnit:FullCastSpellOnTarget(3146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1271', 31000, 1)
end

function spell1_1271(pUnit, Event) --@Icy Grasp,n/a--
pUnit:FullCastSpellOnTarget(3145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1271', 5000, 1)
end

function Sorts_1271(pUnit, Event)
local choix_sorts_1271 = math.random(0, 1)
if choix_sorts_1271 == 0 then
pUnit:RegisterEvent('spell0_1271', 1, 1)
end
if choix_sorts_1271 == 1 then
pUnit:RegisterEvent('spell1_1271', 1, 1)
end
end

function mob1271_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1271', math.random(1500, 3000), 1)
end

function mob1271_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1271_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1271_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1271, 1, 'mob1271_Action')
RegisterUnitEvent(1271, 2, 'mob1271_Leave')
RegisterUnitEvent(1271, 3, 'mob1271_Kill')
RegisterUnitEvent(1271, 4, 'mob1271_Die')
